﻿using System;
using DAL = RavenAcessLayer;
namespace ControlIP.DataTypes.DomainObjects
{
    /*Defined Hour of consultant*/
    public enum HourType{NoMatter,NotBilling,Billing}
    /*Defined work local*/
    public enum Local{NoMatter, Office , Client } 


    public class Entry : DAL.DomainObject
    {

        public HourType TypeHour { get; set; }
        public Local    Local { get; set; }
        public DateTime BeginDate { get; set; }
        public DateTime EndDate { get; set; }
        public int TotalInMinutes { get; set; }
        public int TotalInHours { get; set; }
        public String Decription { get; set; }


        /* Related Project */
        public Project Project { get; set; }
        public Employee User { get; set; }


        /*Descrição Concatana*/
        public String DisplayDescr
        {
            get { return String.Format("{0} - {1} ", Project.Code, Decription); }
        }


    }
}
